﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ManageProduct.aspx.cs" Inherits="EWDTAssignment.ManageProduct" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">



    <style type="text/css">
        #center
        {
            height: 314px;
        }
        .style3
        {
            height: 50px;
    }
         .header
  {
    font-weight:bold;
    position:absolute;
    background-color:White;
  }

        .style14
        {
            width: 461px;
        }
        #flagdiv
        {
            height: 314px;
            width: 374px;
        }

        .style15
        {
            width: 222px;
        }

        .style16
        {
            text-decoration: underline;
        }
        .style17
        {
            width: 461px;
            height: 26px;
        }
        .style18
        {
            width: 222px;
            height: 26px;
        }

        .style19
        {
            width: 461px;
            height: 361px;
        }
        .style20
        {
            width: 222px;
            height: 361px;
        }
        .style21
        {
            width: 259px;
            height: 50px;
        }
        .style22
        {
            width: 128px;
            height: 50px;
        }

        </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
            <ContentTemplate>
       
          
         
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
       
          
         
                <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2" 
                    AutoPostBack="True" Height="900px" Width="700px" 
                    onactivetabchanged="TabContainer1_ActiveTabChanged">
                    <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Products Catalog"><HeaderTemplate>Products Catalog</HeaderTemplate><ContentTemplate>
                        <table style="width:654px; height: 61px;"><tr><td class="style22">
                            <asp:Button ID="btnDisplayAll" runat="server" OnClick="btnDisplayAll_Click" 
                                Text="Display All" />
                            </td>
                            <td colspan="1">
                                &nbsp;</td>
                            <td class="style21">
                                <asp:Button ID="btnDelete" runat="server" Height="26px" 
                                    onclick="btnDelete_Click" Text="Delete Selected" Width="108px" />
                            </td>
                            <td class="style3" 
                                nowrap="nowrap">
                                <asp:Label ID="lblsearchResult" runat="server" style="margin-bottom: 0px" 
                                    Visible="False"></asp:Label>
                            </td>
                            <td style="width: 50px; height: 50px">&nbsp;</td></tr></table>
                        <asp:GridView 
                        ID="gvProductList" runat="server" AutoGenerateColumns="False" 
                                DataSourceID="dsProduct" 
                                onselectedindexchanged="gvProductList_SelectedIndexChanged" 
                                onrowcommand="gvProductList_RowCommand" 
                                onselectedindexchanging="gvProductList_SelectedIndexChanging" 
                                onsorted="gvProductList_Sorted" AllowPaging="True" 
                                  ondatabound="gvProductList_DataBound" 
                                  onprerender="gvProductList_PreRender" ShowHeaderWhenEmpty="True" 
                                  GridLines="Horizontal" HorizontalAlign="Justify" PageSize="15" 
                        onrowdatabound="gvProductList_RowDataBound" 
                        onrowcreated="gvProductList_RowCreated" AllowSorting="True" 
                            onpageindexchanging="gvProductList_PageIndexChanging"><Columns>
                                <asp:TemplateField>
                                    <EditItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cktick" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Product ID" ConvertEmptyStringToNull="False"><EditItemTemplate><asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ProductID") %>'></asp:TextBox></EditItemTemplate><HeaderTemplate>
                      
                            <asp:Label ID="lblpID" runat="server" Text="Product ID"></asp:Label>
                     
                                <br />
                     
                            <asp:TextBox ID="txtbxID" runat="server" Height="20px" 
                                                ontextchanged="txtbxID_TextChanged" Width="50px" AutoPostBack="True"></asp:TextBox><br />
                     
                            <asp:RegularExpressionValidator 
                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtbxID" ErrorMessage="Number Input Only" 
                            ValidationExpression="\b[0-99]+(\.[0-99]+)?(e[+-]?[0-99]+)?\b" 
                                Font-Bold="True" ForeColor="Red"></asp:RegularExpressionValidator></HeaderTemplate><ItemTemplate>
                           
                                <asp:Label ID="lblProductID" runat="server" Text='<%# Bind("ProductID") %>'></asp:Label>
                        
                            </ItemTemplate><HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" /></asp:TemplateField><asp:TemplateField HeaderText="Category" ConvertEmptyStringToNull="False"><EditItemTemplate><asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Category") %>'></asp:TextBox></EditItemTemplate><HeaderTemplate>
                        
                                <asp:Label ID="lblCategory" runat="server" Text="Category"></asp:Label>
                            
                                    <br />
                            
                                <asp:DropDownList ID="ddlsearchCat" runat="server" Width="120px" 
                                                AutoPostBack="True" ontextchanged="ddlsearchCat_TextChanged"><asp:ListItem> </asp:ListItem><asp:ListItem>GFX</asp:ListItem><asp:ListItem>CPU</asp:ListItem><asp:ListItem>MotherBoard</asp:ListItem><asp:ListItem>PSU</asp:ListItem><asp:ListItem>SoundCard</asp:ListItem><asp:ListItem>RAM</asp:ListItem><asp:ListItem>HDD</asp:ListItem><asp:ListItem>Casing</asp:ListItem>
                                    <asp:ListItem>Monitor</asp:ListItem>
                                    <asp:ListItem Value="Accessory">Accessory</asp:ListItem>
                                    </asp:DropDownList></HeaderTemplate><ItemTemplate><asp:Label ID="Label2" runat="server" Text='<%# Bind("Category") %>'></asp:Label></ItemTemplate><HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" /></asp:TemplateField><asp:TemplateField HeaderText="Product Name" ConvertEmptyStringToNull="False"><EditItemTemplate><asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ProductName") %>'></asp:TextBox></EditItemTemplate><HeaderTemplate>
                                &nbsp;&nbsp;Product Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;<asp:TextBox ID="txtbxPname" runat="server" Width="120px" AutoPostBack="True" 
                                                ontextchanged="txtbxPname_TextChanged"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</HeaderTemplate><ItemTemplate><asp:Label ID="Label3" runat="server" Text='<%# Bind("ProductName") %>' 
                                                Width="150px" Height="31px"></asp:Label></ItemTemplate>
                                <HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" 
                                    Width="100px" /><ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="200px" /></asp:TemplateField><asp:TemplateField ShowHeader="False" ConvertEmptyStringToNull="False"><HeaderTemplate><asp:Label ID="lblsearchResult" runat="server" Visible="False"></asp:Label>&#160;</HeaderTemplate><ItemTemplate><asp:Button ID="btnView" runat="server" onclick="btnView_Click" 
                                                Text="More Detail" Width="85px" CommandName="Select" /></ItemTemplate></asp:TemplateField></Columns><HeaderStyle 
                        HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" /><RowStyle HorizontalAlign="Justify" VerticalAlign="Top" /></asp:GridView></ContentTemplate></asp:TabPanel>
                  
                    <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Product Details"><ContentTemplate>
                        <br />
                        <asp:DetailsView ID="dvPerProduct" runat="server" Height="356px" Width="632px" 
                                AutoGenerateRows="False" DataSourceID="dsProducyByID" Font-Names="Century" 
                                Font-Overline="False" Font-Underline="False" HorizontalAlign="Center" 
                                ondatabound="dvPerProduct_DataBound" onitemcreated="dvPerProduct_ItemCreated" 
                                ><Fields><asp:TemplateField HeaderText="Product Image"><EditItemTemplate><asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("ProdImg") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("ProdImg") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Image ID="Image1" runat="server" Height="58px" 
                                                ImageUrl='<%# Eval("ProdImg") %>' Width="84px" /></ItemTemplate><HeaderStyle BorderStyle="None" HorizontalAlign="Left" VerticalAlign="Top" /></asp:TemplateField><asp:TemplateField HeaderText="Category"><EditItemTemplate><asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Category") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Category") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Label ID="Label1" runat="server" Text='<%# Bind("Category") %>'></asp:Label></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Product ID"><EditItemTemplate><asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ProductID") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ProductID") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Label ID="Label2" runat="server" Text='<%# Bind("ProductID") %>'></asp:Label></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Product Name"><EditItemTemplate><asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ProductName") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ProductName") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Label ID="Label3" runat="server" Text='<%# Bind("ProductName") %>'></asp:Label></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Description"><EditItemTemplate><asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Description") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Description") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Label ID="Label4" runat="server" Text='<%# Bind("Description") %>'></asp:Label></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Specification"><EditItemTemplate><asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Specification") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Specification") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Label ID="lblspec" runat="server" Text='<%# Eval("Specification") %>' 
                                                Visible="False"></asp:Label><br />
                                <asp:ListBox ID="ListBox1" runat="server" Rows="1" Enabled="False"></asp:ListBox>
                                <br />
                                </ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Price"><EditItemTemplate><asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Price") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Price") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate>
                                    $:<asp:Label ID="Label6" runat="server" Text='<%# Bind("Price") %>'></asp:Label></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Flag"><EditItemTemplate><asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Flag") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Flag") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Label 
                                ID="lblflag" runat="server" Text='<%# Eval("Flag") %>' Visible="False"></asp:Label>
                                <br />
                                <br />
                                <asp:ListBox 
                                ID="listbxFlag" runat="server" Rows="1"></asp:ListBox></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Quantity"><EditItemTemplate><asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Quantity") %>'></asp:TextBox></EditItemTemplate><InsertItemTemplate><asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Quantity") %>'></asp:TextBox></InsertItemTemplate><ItemTemplate><asp:Label ID="Label8" runat="server" Text='<%# Bind("Quantity") %>'></asp:Label></ItemTemplate></asp:TemplateField></Fields><HeaderStyle HorizontalAlign="Left" Wrap="False" /></asp:DetailsView>
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </ContentTemplate></asp:TabPanel>
                    <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Edit Product" Visible="True">
                        <HeaderTemplate>
                            Add new Product
                        </HeaderTemplate>
                        <ContentTemplate>
                     
                        <table style="border-style: double; height: 1034px"><tr>
                            <td class="style14" align="char">Product User Type:
                                <asp:DropDownList ID="ddlproductgrade" runat="server" Height="16px" 
                                    OnSelectedIndexChanged="ddlItemType_SelectedIndexChanged" Width="117px">
                                    <asp:ListItem>All</asp:ListItem>
                                    <asp:ListItem>General</asp:ListItem>
                                    <asp:ListItem>Work</asp:ListItem>
                                    <asp:ListItem>Casual Gaming</asp:ListItem>
                                    <asp:ListItem>Hardcore Gaming</asp:ListItem>
                                    <asp:ListItem>Extreme Gaming</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td class="style15" align="char">Categories: <asp:DropDownList ID="ddlItemType" runat="server" 
                                    Height="16px" Width="117px" AutoPostBack="True" 
                                    onselectedindexchanged="ddlItemType_SelectedIndexChanged">
                                <asp:ListItem>Motherboard</asp:ListItem>
                                <asp:ListItem>Casing</asp:ListItem>
                                <asp:ListItem>PSU</asp:ListItem>
                                <asp:ListItem>GFX</asp:ListItem>
                                <asp:ListItem>RAM</asp:ListItem>
                                <asp:ListItem>Soundcard</asp:ListItem>
                                <asp:ListItem>HDD</asp:ListItem>
                                <asp:ListItem>CPU</asp:ListItem>
                                <asp:ListItem>Monitor</asp:ListItem>
                                <asp:ListItem>Accessory</asp:ListItem>
                                </asp:DropDownList></td></tr><tr>
                            <td class="style14" align="char">
                                <br />
                                <br />
                                <asp:Image ID="Image2" runat="server" Height="120px" Width="120px" 
                                    ondatabinding="Image2_DataBinding" />
                                <br />
                             
                                <br />
                                <br />
                                <asp:FileUpload ID="UploadImage" runat="server" 
                                    ondatabinding="UploadImage_DataBinding" onload="UploadImage_Load"/>
                                </td>
                            <td class="style15" align="char">&nbsp;</td></tr><tr><td class="style17" align="char">Product Name : </td>
                            <td class="style18" align="char"><asp:TextBox ID="txtbxPName" runat="server" 
                                    Width="250px"></asp:TextBox>     <div style="text-align:center; height: 15px;"> </td></tr><tr>
                            <td class="style14" align="char" dir="ltr">Description</td><td class="style15" 
                                    align="char" dir="ltr">
                            <asp:TextBox ID="txtbxDesc" runat="server" Height="95px" TextMode="MultiLine" 
                                Width="391px"></asp:TextBox></td></tr>
                            <tr>
                                <td class="style14" align="char">
                                    Price</td>
                                <td class="style15" align="char">
                                    <asp:TextBox ID="txtbxPrice" runat="server" Height="17px" Width="88px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                        ControlToValidate="txtbxPrice" ErrorMessage="Number Input Only" 
                                        Font-Bold="True" ForeColor="Red" 
                                        ValidationExpression="\b[0-99]+(\.[0-99]+)?(e[+-]?[0-99]+)?\b"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style14" align="char">
                                    Quantity</td>
                                <td class="style15" align="char">
                                    <asp:TextBox ID="txtbxQty" runat="server" Height="17px" Width="88px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                        ControlToValidate="txtbxQty" ErrorMessage="Number Input Only" Font-Bold="True" 
                                        ForeColor="Red" ValidationExpression="\b[0-99]+(\.[0-99]+)?(e[+-]?[0-99]+)?\b"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style19" 
                                    style="vertical-align: top; text-align: left; white-space: normal">
                                    <span class="style16"><strong>Specification</strong></span><br />
                                    <asp:Label ID="lblspec1" runat="server" Text="CPU" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec1" runat="server" Width="100px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblspec2" runat="server" Text="Form Factor" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec2" runat="server" Width="100px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblspec3" runat="server" Text="Ram Speed Support" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec3" runat="server" Width="100px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblspec4" runat="server" Text="Ethernet" Visible="False" 
                                        Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec4" runat="server" Visible="False" Width="100px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblspec5" runat="server" Text="Onboard Audio" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec5" runat="server" Width="100px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblspec6" runat="server" Text="External interface" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec6" runat="server" Width="100px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblspec7" runat="server" Text="Additional interface" 
                                        Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec7" runat="server" Width="100px"></asp:TextBox>
                                    <br />
                                    <asp:Label ID="lblspec8" runat="server" Text="Additional Info" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxspec8" runat="server" Width="100px"></asp:TextBox>
                                </td>
                                <td align="char" class="style20" 
                                    style="vertical-align: top; text-align: left; white-space: normal">
                                    <span class="style16"><strong>Flag</strong></span><br />
                                    <asp:Label ID="lblflag1" runat="server" Text="Expansion1" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag1a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag1b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag2" runat="server" Text="Expansion2" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag2a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag2b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag3" runat="server" Text="Expansion3" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag3a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag3b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag4" runat="server" Text="Expansion4" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag4a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag4b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag5" runat="server" Text="Expansion5" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag5a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag5b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag6" runat="server" Text="Socket" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag6a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag6b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag7" runat="server" Text="Form Factor" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag7a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag7b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag9" runat="server" Text="Ram Type" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag9a" runat="server" Width="49px"></asp:TextBox>
                                    <asp:TextBox ID="txtbxflag9b" runat="server" Width="49px"></asp:TextBox>
                                    <br />
                                    <br />
                                    <asp:Label ID="lblflag8" runat="server" Text="Hard Disk Type" Width="100px"></asp:Label>
                                    <asp:TextBox ID="txtbxflag8" runat="server" Width="100px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style19" 
                                    style="vertical-align: top; text-align: left; white-space: normal">
                                    <asp:Button ID="btnCreate" runat="server" OnClick="Button1_Click" 
                                        Text="Create" />
                                </td>
                                <td align="char" class="style20" 
                                    style="vertical-align: top; text-align: left; white-space: normal">
                                    <asp:Label ID="lblmsg" runat="server" ForeColor="Red" Text="Label" 
                                        Visible="False"></asp:Label>
                                </td>
                            </tr>
                            </table></ContentTemplate></asp:TabPanel>
                </asp:TabContainer>
            </ContentTemplate>
            
        </asp:UpdatePanel>

     
        <br />
   

        <br />

        <br />
        <br />
        <br />
   

        <asp:ObjectDataSource runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="retrieveProductByID" TypeName="EWDTAssignment.App_Code.DBManager" 
        ID="dsProducyByID"><SelectParameters>
<asp:SessionParameter SessionField="adminP_ID" Name="pID" Type="Int32" DefaultValue="1"></asp:SessionParameter>
</SelectParameters>
</asp:ObjectDataSource>

    <asp:ObjectDataSource ID="dsProduct" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="getProduct" 
        TypeName="EWDTAssignment.App_Code.DBManager"></asp:ObjectDataSource>
        <asp:ObjectDataSource ID="dsSearchByID" runat="server"></asp:ObjectDataSource>
        <asp:ObjectDataSource ID="dsSearchByProductName" runat="server"></asp:ObjectDataSource>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
 

                        
   
    </asp:Content>

